﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeFile="join.aspx.cs" Inherits="join" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
<div id="Indown-01">
  <div id="Left-Btn-Table"></div>
     
  <h1>加入會員</h1>
  <div class="join-table">
    <table>
        <tr>
            <td>
                <p>姓　　名</p>
            </td>
            <td>
                 <asp:TextBox ID="txtName" runat="server" CssClass="Order-001"></asp:TextBox>     
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="請輸入姓名"
                  ControlToValidate="txtName" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>       
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <p>&nbsp;</p>
            </td>
        </tr>
        <tr>
            <td>
                <p>電　　話</p>
            </td>
            <td>
            <asp:TextBox ID="txtPhone" runat="server" CssClass="Order-001"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="請輸入電話"
                  ControlToValidate="txtPhone" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>      
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <p>&nbsp;</p>
            </td>
        </tr>
        <tr>
            <td>
                <p>性　　別</p>
            </td>
            <td>
                <asp:RadioButtonList ID="rdoSex" runat="server" RepeatDirection="Horizontal">
            <asp:ListItem Text="男" Value="男"></asp:ListItem>
            <asp:ListItem Text="女" Value="女"></asp:ListItem>
        </asp:RadioButtonList>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="請選擇性別"
                  ControlToValidate="rdoSex" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <p>&nbsp;</p>
            </td>
        </tr>
        <tr>
            <td>
                <p>電子信箱</p>
            </td>
            <td>
            <asp:TextBox ID="txtEmail" runat="server" CssClass="Order-001"></asp:TextBox>
      <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="請輸入電子信箱"
                  ControlToValidate="txtEmail" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>      
      <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ValidationGroup="Save" ErrorMessage="電子信箱格式不正確"
                  Display="None" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmail"></asp:RegularExpressionValidator>
            </td>
        </tr>
    </table>   
    <asp:LinkButton ID="btnSend" runat="server" onclick="btnSend_Click" ValidationGroup="Save" >
      <p class="Btn-Join">加入會員</p>
    </asp:LinkButton> </div>
</div>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="Save" 
        ShowMessageBox="True" ShowSummary="False"/>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

